﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FeedbackWebClient.Common
{
    public class StateHelper
    {
        private const string BusinessIdSessionKey = "073F06C9-DAEC-4F58-A9A1-A7C90E22EBE8";
        private const string BusinessEmailSessionKey = "8DC6793B-480D-4321-9395-78D6FC2D7F5F";
        public static int BusinessId
        {
            set
            {
                HttpContext.Current.Session[BusinessIdSessionKey] = value;
            }
            get
            {
                if (HttpContext.Current.Session[BusinessIdSessionKey] != null)
                {
                    return Convert.ToInt32(HttpContext.Current.Session[BusinessIdSessionKey]);
                }
                return -1;
            }
        }
        public static string BusinessEmail
        {
            set
            {
                HttpContext.Current.Session[BusinessEmailSessionKey] = value;
            }
            get
            {
                if (HttpContext.Current.Session[BusinessEmailSessionKey] != null)
                {
                    return Convert.ToString(HttpContext.Current.Session[BusinessEmailSessionKey]);
                }
                return string.Empty;
            }
        }
    }
}